using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using SailHero.Soft.FrameWork.Models;

namespace SailHero.Soft.FrameWork.Mapping.HJT212DB
{
    public class TB_MESSAGECACHELISTMap : EntityTypeConfiguration<TB_MESSAGECACHELIST>
    {
        public TB_MESSAGECACHELISTMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.MN)
                .HasMaxLength(32);

            this.Property(t => t.QN)
                .HasMaxLength(20);

            this.Property(t => t.MessageID)
                .HasMaxLength(32);

            // Table & Column Mappings
            this.ToTable("TB_MESSAGECACHELIST");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.MN).HasColumnName("MN");
            this.Property(t => t.QN).HasColumnName("QN");
            this.Property(t => t.SENDTIME).HasColumnName("SENDTIME");
            this.Property(t => t.MessageID).HasColumnName("MessageID");
        }
    }
}
